Java: Pass-by-Value or Pass-by-Reference?
System Design
Java
Code Concepts
Shortly put, it's Pass-By-Value. Inside though, is why it's so, and that's pretty interesting. Get in here to learn about why it's confusing in the first place, and a little about Java's Memory Management.